mips-hack
authorMatthias Klose <doko@debian.org>
Tue, 9 Dec 2025 08:47:23 +0000 (09:47 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 9 Dec 2025 08:47:23 +0000 (09:47 +0100)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 42cbd7702e2de87b06522405c8ce8ccc24249e5c..02582b4b7173f1b3a20437432e9d159ab1dea231 100644 (file)
@@ -17056,6 +17056,9 @@ parse_code_option (char * name)
   else
     return OPTION_TYPE_BAD;
 
+  if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
+    mips_opts.isa = ISA_MIPS2;
+
   return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
 }